package app;

import java.io.IOException;

public class Invoke {

	private String itemID;
	private String location;
	private String category;
	private String itemName;

	public Invoke(String location, String category, String itemName, String itemID) {
		this.itemID = itemID;
		this.location = location;
		this.category = category;
		this.itemName = itemName;
	}
	
	public void results() throws IOException {
		Reader reader = new Reader(location, category, itemName, itemID);
		Parser parser = new Parser(reader);
		Writer writer = new Writer();
		writer.writeToFile(reader, parser);
	}
}
